Index | Conventions

api/v1/rfc/{rfcno}/stock

Path: api/v1/rfc/{rfcno}/stock

This API is JSON:API compliant.

This endpoint supports the following methods:
GET

This endpoint requires an OAuth bearer token, and returns errors in a standard shape. See API Conventions for authentication, error responses and paging, which apply to every endpoint.

The resource type for this endpoint is RFCStock
The identifier is rfcno-lineid

Attributes

The RFCStock resource type attributes are as follows:

AttributeTypeDescription
adddatestring (DateTime in ISO format)The date and time the stock line was added.
addinitstringThe initials of the user who added the stock line.
configNointegerStock attribute configuration number.
descriptionstringThe stock description. Only required if the default stock description needs to be overrridden. It is recommended this be set for special stock.
jobLineIdNullable`1The job line this return line relates to.
jobNointegerThe job number this return line relates to.
modifydatestring (DateTime in ISO format)The date and time the stock line was last modified.
modifyinitstringThe initials of the user who last modified the stock line.
packIdintegerThe pack this return line belongs to.
qtyRetnumberThe quantity being returned for credit.
sJobNointegerThe source job number this return line relates to.
stockCodestringThe Jim2 stock code
stockIdintegerThe Jim2 stock number of the line's stock item.
transfLocNoNullable`1The transfer location for the return line.
unitstringThe unit of measure for the stock line.
unitPriceTFnumberThe unit price exclusive of tax.
unitPriceTPnumberThe unit price inclusive of tax.

Example GET (Return all)

Path: api/v1/rfc/10/stock

Response:

This example shows the maximum set of fields the endpoint can return, all populated. A real response only contains the data that applies to that record, so fields that are empty or not relevant are omitted — do not assume every field shown here will be present in every response.

This is a list. To keep the example readable, only the first item below is written out; the later items have been trimmed down in this documentation. In a real response each item comes back with the data applicable to that record (as described above).

Side-loading related resources with the include query parameter is not supported on list endpoints: an include parameter is ignored here and no included section is returned. To retrieve a related resource, request it directly using the id shown in each item's relationships, or use the single-resource (get by id) endpoint, which does support include.

{
  "data": [
    {
      "id": "10-1",
      "type": "RFCStock",
      "attributes": {
        "qtyRet": 2.0,
        "unitPriceTF": 20.0,
        "unitPriceTP": 22.0,
        "jobNo": 105,
        "jobLineId": 1,
        "sJobNo": 106,
        "packId": 12,
        "transfLocNo": 1,
        "configNo": 4501,
        "addinit": "API",
        "adddate": "2025-11-24T09:15:00",
        "stockId": 3,
        "stockCode": "SAMSUNG.MON.CONNECT",
        "unit": "EACH",
        "description": "Samsung Monitor Connector.",
        "modifyinit": "API",
        "modifydate": "2025-11-24T09:15:00"
      },
      "links": {
        "self": "/api/v1/rfc/10/stock/10-1"
      }
    },
    {
      "id": "10-2",
      "type": "RFCStock",
      "attributes": {
        "stockCode": "MOUSE",
        "qtyRet": 1.0
      }
    }
  ]
}

Example GET (Return specific)

Path: api/v1/rfc/10/stock/10-1

Response:

This example shows the maximum set of fields the endpoint can return, all populated. A real response only contains the data that applies to that record, so fields that are empty or not relevant are omitted — do not assume every field shown here will be present in every response.

{
  "data": {
    "id": "10-1",
    "type": "RFCStock",
    "attributes": {
      "qtyRet": 2.0,
      "unitPriceTF": 20.0,
      "unitPriceTP": 22.0,
      "jobNo": 105,
      "jobLineId": 1,
      "sJobNo": 106,
      "packId": 12,
      "transfLocNo": 1,
      "configNo": 4501,
      "addinit": "API",
      "adddate": "2025-11-24T09:15:00",
      "stockId": 3,
      "stockCode": "SAMSUNG.MON.CONNECT",
      "unit": "EACH",
      "description": "Samsung Monitor Connector.",
      "modifyinit": "API",
      "modifydate": "2025-11-24T09:15:00"
    },
    "links": {
      "self": "/api/v1/rfc/10/stock/10-1"
    }
  }
}